package com.code.learn.Ipersistance.sqlSession;

import java.util.List;

/**
 * @author Nina
 * @create 2020/12/8 下午3:08
 * Executor的实现底层才是真正的执行对数据库的操作
 */
public interface Executor {
    <E> List<E> query(String statementId, Object... params) throws Exception;
    Object queryOne(String statementId, Object... params) throws Exception;

    void update(String statementId, Object... params)throws Exception;
}
